package com.wwj.core.wawa.service;

import com.github.pagehelper.Page;
import com.wwj.core.wawa.entity.WaWaMachine;

import java.util.List;
import java.util.Map;

public interface IWaWaMachineService {
    WaWaMachine findByDeviceId(String deviceId) throws Exception;

    int createNewMachine(WaWaMachine waWaMachine) throws Exception;

    int updateMachine(WaWaMachine waWaMachine) throws Exception;

    List<WaWaMachine> findAll() throws Exception;

    Page<WaWaMachine> findByPage(Map<String,Object> params,int offset,int limit)throws Exception;
}
